package com.xf.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author xufeng
 */
@SpringBootApplication
@EnableRedisHttpSession
//sso地址无法正常跳转
//@EnableFebsCloudResourceServer
@MapperScan("com.xf.auth.mapper")
@EnableFeignClients(basePackages = "com.xf.common.core.feign")
public class AuthApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(AuthApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
